import { defineConfig } from "vite"
import uni from "@dcloudio/vite-plugin-uni";
export default defineConfig({
	plugins: [
		uni()
	],
	server: {
		proxy: {
			'/api': {
				target:'https://www.ch.gamepartner.cn/api/v1',
				changeOrigin: true,
				rewrite: path => {
					return path.replace(/^\/api/, '')
				}
			}, 
		}
	}
})